<div class="content page" data-page="accountMain" id="accountMain">
	<p class="hint none"><img src="../../../res/png/exclamation_icon.png" />&nbsp;&nbsp;您的账号还未进行资质认证,认证之后享受更多借款产品 , <a class="goToApprove">立即认证 ></a></p>
	<div class="important_info">
		<div class="amount_sum"><span class="span1 data" name="financeAmount">0</span>
			<br/><span class="span2">包含<span class="data" name="financeCount">0</span>笔借款</span>
		</div>
		<div class="amount_not"><span class="span1 data" name="totalRepayAmount">0</span>
			<br/><span class="span2 data" name="totalLoanAmount">0</span></div>
		<div class="amount_should"><span class="span1"></span>
			<br/><span class="span2">包含<span class="data" name="pickupCount">0</span>笔提货</span>
		</div>
		<a id="goToApply" href="../main/product.html">我要借款</a>
	</div>
	<div style="margin-left: 35px;">
		<div class="bdiv">
			<a href="javascript:void(0);" style="margin-left:24px;">运单号：</a><input placeholder="请输入运单号" name="waybillNumber" type="text"/>
			<a href="javascript:void(0);" style="margin-left:21px;">融资箱号：</a><input placeholder="请输入箱号" name="caseNumber" type="text"/>
			<a href="javascript:void(0);" style="margin-left:10px;">融资编号：</a><input placeholder="请输入融资编号" name="financeNumber" type="text"/>
			<br/>
			<!-- <a href="javascript:void(0);">合同编号：</a><input placeholder="请输入合同编号" name="financeContractNumber" type="text"/> -->
			<a href="javascript:void(0);">合同序列号：</a><input placeholder="请输入合同序列号" name="financeContractSerialNumber" type="text"/>
			<a class="searchBtn" href="javascript:void(0);" style="margin-left:19px;">查询</a>
		</div>
	</div>
	<p class="hint1">进行中的借款</p>
	<div style="margin-left: 27px; margin-right: 40px;">
		<table style="width: 100%;" class="data_table" cellspacing="0px" cellpadding="0px" id="accountMainListBody">
		</table>
		<div class="pagerCon"></div>
	</div>
	<script type="text/template" id="accountMainListTpl">
		<tr>
			<th>申请时间 | 融资编号</th>
			<!--<th>合同编号</th>-->
			<th>放款时间</th>
			<th>合同序列号</th>
			<th>质押货物</th>
			<th>重量</th>
			<th>申请金额</th>
			<th>借款金额</th>
			<th>审批金额</th>
			<th>进度</th>
			<th>操作</th>
		</tr>
		{@each datas as it}
		<tr financeId="${it.financeId}" financeNumber="${it.financeNumber}">
			<td><span class="order_status" style="background-color: ${getValueByKey(32, it.productType)};">${getValueByKey(7, it.productType)}</span>&nbsp;&nbsp;${it.applicationDateTime}
				<br/><span class="order_num">${it.financeNumber}</span></td>
			<!--<td>${it.financeContractDetail.financeContractNumber}</td>-->
			<td>${it.loanDate}</td>
			<td>${it.financeContractDetail.financeContractSerialNumber}</td>
			<td>
				{@each it.bulkstocks as item} ${item.bulkstockName}(${item.specification})
				<br /> {@/each}
			</td>
			<td>
				{@each it.bulkstocks as item} ${item.weight}吨
				<br /> {@/each}
			</td>
			<td>&#65509;${(it.applicationAmount / 10000).toFixed(2)} 万元</td>
			<td>&#65509;${it.financeAmount / 10000} 万元</td>
			<td>&#65509;${it.totalLoanAmount / 10000} 万元</td>
			<td>${getValueByKey(30, it.financeState)}</td>
			<td>
				<div>
					<a class="detail detailApplication">详情&nbsp;&nbsp;<span class="accountMainOperate accountMainOperate${it.financeState}"><img src="../../../res/png/arrow1_icon.png"/><span class="cancel"><span class="detailApplication">详情&nbsp;&nbsp;<img src="../../../res/png/arrow2_icon.png"/></span><span class="cancelApplication">取消借款</span></span></span></a>
				</div>
			</td>
		</tr>
		{@/each}
	</script>
</div>